#ifndef CHARACTER_H
#define CHARACTER_H
//
#include <QXmlStreamAttributes>
#include <QObject>
#include "EquippedItem.h"
#include "Downloadable.h"
//
class Character: public Downloadable
{
	Q_OBJECT
	QString server, name;
	EquippedItem items[18];
	QString getUrl();
	
public:
	int intellect, stamina, spirit, shadowdamage, spellhaste, spellcrit, spellhitrating; 
	Character();
	virtual ~Character();
	void setServer(QString server);
	void setName(QString name);
	void loadItem(QXmlStreamAttributes& attr);
public slots:
	void recalcStats();
	void downloadFinished(QString data);
signals:
	void statsUpdated();
};
#endif
